package com.ecare.mobile.remote.fallback;

import com.ecare.mobile.remote.UserRemote;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
public class UserRemoteFallback implements UserRemote {
    @Override
    public String getUser(String name) {
        //返回一个固定值
        return "李四";
    }
}
